<@_category id=id><#assign category=object/></@_category>
<#if !pageIndex?has_content><#assign pageIndex='1'/></#if>
<#assign pageIndex=pageIndex?number/>
<!DOCTYPE html>
<html lang="zh">
<head>
	<title>${category.name} - PublicCMS</title>
	<meta name="keywords" content="${category.name}"/>
	<meta name="description" content="${category.name}"/>
	<#include "include/header.html"/>
</head>
<body>
<#include "include/nav.html"/>
<main>
	<div class="container nav">
		<@_categoryList parentId=category.id>
			<#list page.list as a>
				<a href="list.html?id=${a.id}">${a.name}</a>
			</#list>
		</@_categoryList>
	</div>
	<div class="container bread">
		<#include "ftl/echoBread.ftl"/>
		<@echoBread category.id/>
	</div>
	<div class="container">
<@_contentList status=1 categoryId=category.id containChild=true endPublishDate=.now orderField='publishDate' orderType='desc' pageIndex=pageIndex count=category.pageSize>
		<div class="data-list left-content">
			<#if 1=pageIndex>
				<h3>最新内容</h3>
			</#if>
	<#list page.list as a>
		<@t.meger 'modelIds' a.modelId!/>
	</#list>
	<@_model ids=t.modelIds!><#assign modelMap=map/></@_model>
	<#list page.list as a>
		<#assign model=modelMap[a.modelId?string]/>
		<#include "ftl/data-list.ftl"/>
	</#list>
			<#if 1=pageIndex>
				<div class="page">
					<#if !page.lastPage>
						<a href="category.html?id=${id}&pageIndex=${page.nextPage}">查看更多</a>
					<#else>
						<span>查看更多</span>
					</#if>
				</div>
			<#else>
				<#include "ftl/category_page.ftl"/>
			</#if>
		</div>
		<aside>
			<@_templateDataList path="category/list.html/1.html">
				<#include "include/"+path/><#-- 文章右侧-编辑推荐 -->
			</@_templateDataList>
			<@_templateDataList path="category/list.html/2.html">
				<#include "include/"+path/><#-- 精彩图集 -->
			</@_templateDataList>
			<div>
				<h3>热门排行</h3>
				<ul class="rank">
<@_contentList status=1 categoryId=category.id containChild=true endPublishDate=.now orderType='desc' orderField='clicks' count=10>
	<#list page.list as a>
					<li><a href="content.html?id=${a.id}" target="_blank">${a.title}</a><span>${a.clicks}</span></li>
	</#list>
</@_contentList>
				</ul>
			</div>
		</aside>
</@_contentList>
	</div>
</main>
<#include "include/footer.html"/>
</body>
</html>